/**
 * 
 */
package com.feonix.designPattern.singleton.sample3;

/**
 * @CopyRight (c)1993-2017
 * @Project common_practice
 * @Comments 请输入该类的描述
 * @NameSpace com.feonix.designPattern.singleton.sample3
 * @Author Feonixzw
 * @CreateDate 2018年1月31日
 */
public class Triple {
	
	private static Triple[] triples = {
			new Triple(0),
			new Triple(1),
			new Triple(2)
	};
	
	private int id;
	
	private Triple(int id){
		this.id = id;
	}
	
	public static Triple getInstance(int id){
		return triples[id];
	}

}
